package ink.liaoxuefeng.threaddemo.demo01;

/**
 * @author wangzhuangzhuang
 * @Description:
 * @date 2022-06-01 16:31
 */
public class TestDemo02 {
	public static void main(String[] args) {
		Thread t = new Thread(new MyRunnable());
		t.start(); // 启动新线程
	}
}

class MyRunnable implements Runnable {

	@Override
	public void run() {
		System.out.println("start new thread from Runnable");
	}
}